﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;

namespace TathamOddie.OpenSearchValidator.Logic.Tasks.VisualSearch
{
	public class FindVisualSearchInterfaceTask : InterfaceDiscoveryTask
	{
		public FindVisualSearchInterfaceTask(string descriptionXml)
            : base("visual search suggestion", "application/x-suggestions+xml", descriptionXml)
		{
		}

        protected override void OnValidateSuccess(ValidationTaskResult result, string interfaceTemplate)
        {
            result.ChildTasks.Add(new RetrieveVisualSearchSuggestionsTask(interfaceTemplate));
        }
	}
}